package com.china.produce.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface LoginNeedless {
    LoginNeedless.LoginType loginType() default LoginNeedless.LoginType.NEED_CURRENT_USER;

    public static enum LoginType {
        NONE,

        NEED_CURRENT_USER;

        private LoginType() {}
    }
}
